package lng.site.balafon.jpa;

import java.util.List;

import lng.site.balafon.model.Permission;
import lng.site.balafon.dao.PermissionDAO;

import org.hibernate.criterion.Restrictions;

/**
 * <p>Hibernate DAO layer for Permissions</p>
 * <p>Generated at Thu Aug 02 21:53:17 CEST 2012</p>
 *
 * @author Salto-db Generator v1.0.16 / EJB3 + Spring/Hibernate DAO + TestCases
 * @see http://www.hibernate.org/328.html
 */
public class PermissionHibernateDAO extends
		AbstractHibernateDAO<Permission, Integer> implements
		PermissionDAO {

	/**
	 * Find Permission by valeur
	 */
	public List<Permission> findByValeur(String valeur) {
		return findByCriteria(Restrictions.eq("valeur", valeur));
	}
	

}
